cmake_minimum_required(VERSION 3.28)
project(gobang)

# C的解决办法
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexec-charset=GBK")
# C++ 的解决办法
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fexec-charset=GBK")

include_directories(${CMAKE_SOURCE_DIR}/include)
aux_source_directory(${CMAKE_SOURCE_DIR}/src SRC)
file(GLOB LIB ${CMAKE_SOURCE_DIR}/lib/*.lib)
add_executable(gobang ${SRC})
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/output)
target_link_libraries(gobang ${LIB})
target_link_libraries(gobang ws2_32)